package server.startup;

import server.connector.http.HttpConnector;
import server.core.SimpleContainer;

public class Bootstrap {
    public static void main(String[] args) {
        HttpConnector connector = new HttpConnector();
        SimpleContainer container = new SimpleContainer();
        connector.setContainer(container);

        try {
            //创建好ServerSocket
            connector.initialize();

            connector.start();
            //阻塞线程
            System.in.read();
        } catch (Exception e) {
            e.printStackTrace();
        }


    }
}
